<?php

class Hoi_dong_thi extends Eloquent {
	public $timestamps = false;
	protected $guarded = array();

	public static $rules = array(
		'ma_hoi_dong_thi' => array('required','min:1','unique:hoi_dong_this'),
		'ten_hoi_dong_thi' => 'required'
	);

	public function getTenhoidongthi($id)
	{
		$ten_hoi_dong_thi = DB::table('hoi_dong_this')->where('id',$id)->pluck('ten_hoi_dong_thi');
		return $ten_hoi_dong_thi;
	}
}